#include <testngpp/internal/TestCase.h>
#include <testngpp/internal/TestFixtureDesc.h>
#include <testngpp/internal/TestSuiteDesc.h>
#include <testngpp/internal/DataDriven.h>
#include "TestBar.h"

static struct TESTCASE_TestBar_test_11
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestBar_test_11()
      : TESTNGPP_NS::TestCase
        ( "should be able to add up 2 integers: 2+3=5"
        , "Bar"
        , "TestBar"
        , 0
        , "TestBar.h"
        , 11)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestBar();
      }
      else
      {
         belongedFixture = dynamic_cast<TestBar*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_11()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestBar* belongedFixture;
} testcase_instance_TestBar_test_11 ;



static struct TESTCASE_TestBar_test_17
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestBar_test_17()
      : TESTNGPP_NS::TestCase
        ( "should be able to add up 2 integers: 2+7=9"
        , "Bar"
        , "TestBar"
        , 0
        , "TestBar.h"
        , 17)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestBar();
      }
      else
      {
         belongedFixture = dynamic_cast<TestBar*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_17()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestBar* belongedFixture;
} testcase_instance_TestBar_test_17 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestBar[] = {
&testcase_instance_TestBar_test_11,
&testcase_instance_TestBar_test_17,
0
};




/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestBar
   ( "Bar"
   , "TestBar.h"
   , g_TESTCASEARRAY_TestBar
   , (sizeof(g_TESTCASEARRAY_TestBar)/sizeof(g_TESTCASEARRAY_TestBar[0])) - 1
   );



static TESTNGPP_NS::TestFixtureDesc* array_of_fixture_desc_TestBar[] = {
&test_fixture_desc_instance_TestBar,
0
};




static TESTNGPP_NS::TestSuiteDesc test_suite_desc_instance_TestBar
   ( "TestBar"
   , array_of_fixture_desc_TestBar
   , (sizeof(array_of_fixture_desc_TestBar)/sizeof(array_of_fixture_desc_TestBar[0])) - 1
   );



extern "C" DLL_EXPORT TESTNGPP_NS::TestSuiteDesc* ___testngpp_test_suite_desc_getter() {
   return &test_suite_desc_instance_TestBar;
}


